{{template "admin/public/head.html" .}}
<section>
	<aside>
		{{template "admin/public/nav.html" .}}
	</aside>
	<article>
		<div class="top-title">
			<dl>
				<dt><h1>{{.title}}</h1></dt>
				<dd><form method="get"><input type="text" class="input" placeholder="请输入您需要搜索的会员名字！" name="search"><input type="submit" value="搜索" class="button" /></form></dd>
				<dd><a href="wood_help.html"><i class="iconfont">&#xe649;</i>帮助文档</a></dd>
			</dl>
		</div>
		<div class="nav1">
			<ul>
				<a href="{{.urls}}"><li {{if eq .t ""}}class="no"{{end}}>全部账单</li></a>
				<a href="{{.urls}}&t=0"><li {{if eq .t "0"}}class="no"{{end}}>充值记录</li></a>
				<a href="{{.urls}}&t=1"><li {{if eq .t "1"}}class="no"{{end}}>提现记录</li></a>
				<a href="{{.urls}}&t=2"><li {{if eq .t "2"}}class="no"{{end}}>分销提成</li></a>
				<a href="{{.urls}}&t=3"><li {{if eq .t "3"}}class="no"{{end}}>购买商品</li></a>
				<a href="{{.urls}}&t=4"><li {{if eq .t "4"}}class="no"{{end}}>推广佣金</li></a>
				<a href="{{.urls}}&t=5"><li {{if eq .t "5"}}class="no"{{end}}>店铺收入</li></a>
				<a href="{{.urls}}&t=6"><li {{if eq .t "6"}}class="no"{{end}}>退款</li></a>
				<a href="{{.urls}}&t=7"><li {{if eq .t "7"}}class="no"{{end}}>店铺退款</li></a>
				<a href="{{.urls}}&t=8"><li {{if eq .t "8"}}class="no"{{end}}>新人红包</li></a>

			</ul>
		</div>
		<div class="content">
			<div class="release">
				<dl>
					<dd style="float: right;">
						<a href="/admin/member/money_export?id={{.uid}}&t={{.t}}" target="_blank">
							<button type="button" class="button">导出记录表</button>
						</a>
					</dd>
				</dl>
			</div>
			<!-- 会员列表 -->
			<table class="table">
				<thead><th width="15%">头像</th><th width="25%">会员信息</th><th width="15%">状态</th><th width="15%">金额</th><th width="20%">相关</th></th><th width="15%">时间</th></thead>
				{{range .info}}
				<tr id="{{.id}}">
					<td class="center"><a href="/admin/member/content?id={{.uid}}"><img src="{{.pathname}}" class="img-1" onerror="javascript:this.src='/static/img/admin/avatar.jpg'"></a></td>
					<td>
						<a href="/admin/member/content?id={{.uid}}">{{.monicker}}</a> （ ID：{{.uid}} ）<br>
					</td>
					<td>
						{{if eq .type "0"}}<b style="color: green">充值</b>{{else if eq .type "1"}}<b style="color: red">提现</b>{{else if eq .type "2"}}<b style="color: green">分销提成</b>{{else if eq .type "3"}}<b style="color: red">购买商品{{else if eq .type "4"}}<b style="color: green">佣金</b>{{else if eq .type "5"}}<b style="color: green">店铺收入</b>{{else if eq .type "6"}}<b style="color: green">退款</b>{{else if eq .type "7"}}<b style="color: red">店铺退款</b>{{else if eq .type "8"}}<b style="color: green">新人红包</b>{{end}}
					</td>
					<td>
						{{if eq .type "0" "2" "4" "5" "6" "8"}}<b style="color: green">+{{.money}}</b>{{else}}<b style="color: red">-{{.money}}</b>{{end}}
					</td>
					<td><a href="/admin/order/content?id={{.oid}}" class="tz">{{.ordernum}}</a></td>
					<td>{{.addtime}}</td>
					<!-- <td class="operation"><a href="/admin/member/money_detail?id={{.id}}">详情</a></td> -->
				</tr>
				{{end}}
				{{if .paginator}}
				{{if ne .paginator.totalpages 1}}
					<tr>
						<td  colspan="5">
							<div class="paging">
								{{if ne .paginator.currpage 1}}
								<a href="{{$.url}}page={{.paginator.firstpage}}">首页</a>
								<a href="{{$.url}}page={{.paginator.prevpage}}">&lt;&lt;</a>
								{{else}}
								<a class="disable">首页</a>
								<a class="disable">&lt;&lt;</a>
								{{end}}
								{{range $index,$page := .paginator.pages}}
								{{if eq $.paginator.currpage $page}} 
								<a class="no">{{$page}}</a>
								{{else}}
								<a href="{{$.url}}page={{$page}}">{{$page}}</a>
								{{end}}
								{{end}}
								{{if eq .paginator.currpage .paginator.totalpages}}
								<a class="disable">&gt;&gt;</a>
								<a class="disable">尾页</a>
								{{else}}
								<a href="{{$.url}}page={{.paginator.nextpage}}">&gt;&gt;</a>
								<a href="{{$.url}}page={{.paginator.totalpages}}">尾页</a>
								{{end}}
							</div>
						</td>
					</tr>
				{{end}}
				{{end}}
			</table>
		</div>
	</article>
</section>

<footer><!-- 系统监控内容 --></footer>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/jquery.jedate.min.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/toast.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/uppic.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/xcConfirm.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/app.js"></script>
<script>
</script>
</body>
</html>
